#ifndef PANEL_H
#define PANEL_H

#include <stdbool.h>
#include "SDL.h"

typedef struct {
	bool dirty;
	int w;
	enum { OPEN, CLOSED, OPENING, CLOSING } state;
} Panel;

Panel* new_panel();
void redraw_panel(Panel* panel);
void panel_mouse_button(Panel* panel, SDL_MouseButtonEvent b);
void panel_process(Panel* panel);
void free_panel(Panel* panel);

#endif
